<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/NiSis.Master" CodeBehind="Guess.aspx.cs" Inherits="NiSis.Guess" %>

<%@ Register Src="UserControls/MeseAnnoPicker.ascx" TagName="MeseAnnoPicker" TagPrefix="uc5" %>

<%@ Register Src="UserControls/PoolsToActivate.ascx" TagName="PoolsToActivate" TagPrefix="uc1" %>
<%@ Register Src="UserControls/PrecTraders.ascx" TagName="PrecTraders" TagPrefix="uc2" %>
<%@ Register Src="UserControls/DettaglioUtenze.ascx" TagName="DettaglioUtenze" TagPrefix="uc3" %>
<%@ Register Src="UserControls/RelationshipPicker.ascx" TagName="RelationshipPicker"
    TagPrefix="uc4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div>
        <asp:Wizard ID="Wizard1"    OnNextButtonClick="Wizard1_NextButtonClick" OnPreviousButtonClick="Wizard1_PreviousButtonClick" 
         StepStyle-VerticalAlign="Top" runat="server" ActiveStepIndex="0" BackColor="#E6E2D8"
         BorderColor="#999999"
            BorderStyle="Solid" NavigationStyle-HorizontalAlign="left" BorderWidth="1px" Font-Names="Verdana" 
            Font-Size="0.8em" DisplaySideBar="False" HeaderText="Fase di guess" Height="173px" Width="565px" 
            FinishCompleteButtonText="Salva" FinishPreviousButtonText="Precedente" StartNextButtonText="Successivo" 
            StepNextButtonText="Successvo" StepPreviousButtonText="Precedente"
             OnFinishButtonClick="Wizard1_FinishButtonClick" 
           
            
             >
            <StepStyle BackColor="#F7F6F3" BorderColor="#E6E2D8" BorderStyle="Solid" BorderWidth="2px" VerticalAlign="Top" />
            <WizardSteps>
                <asp:WizardStep runat="server" Title="Selezzione Pool" >
                    &nbsp;<br />
                    <uc1:PoolsToActivate ID="PoolsToActivate1" runat="server" AutoPostBack="false" OnLoad="PoolsToActivate1_Load" />
                    <br />
                </asp:WizardStep>
                <asp:WizardStep runat="server" Title="Seleziona Trader Precedente">
                    <uc2:PrecTraders ID="PrecTraders1" runat="server" />
                </asp:WizardStep>
                <asp:WizardStep runat="server"  Title="Seleziona Utenze">
                    <uc3:DettaglioUtenze ID="DettaglioUtenze1" runat="server" />
                </asp:WizardStep>
                <asp:WizardStep runat="server" ID="FinishStep" Title="Gestisci relazioni">
                    <uc4:RelationshipPicker ID="RelationshipPicker1" OnCompleteStateChanged="RelationshipPicker_StateChanged"  runat="server">
                    </uc4:RelationshipPicker>
                </asp:WizardStep>
            </WizardSteps>
            <SideBarButtonStyle ForeColor="White"  />
            <NavigationButtonStyle  BackColor="White" BorderColor="#C5BBAF" BorderStyle="Solid"
                BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#1C5E55" />
            <SideBarStyle BackColor="#1C5E55" Font-Size="0.9em" VerticalAlign="Top" />
            <HeaderStyle BackColor="#666666" BorderColor="#E6E2D8" BorderStyle="Solid" BorderWidth="2px"
                Font-Bold="True" Font-Size="0.9em" ForeColor="White" HorizontalAlign="Left" />
            <NavigationStyle HorizontalAlign="Left" />
            <StartNavigationTemplate>
                <asp:Button ID="StartNextButton" runat="server" BackColor="White" BorderColor="#C5BBAF"
                    BorderStyle="Solid" BorderWidth="1px" CommandName="MoveNext" Font-Names="Verdana"
                    Font-Size="0.8em" ForeColor="#1C5E55" OnClick="StartNextButton_Click" Text="Successivo" />
            </StartNavigationTemplate>
            <FinishNavigationTemplate>
                <asp:Button ID="FinishPreviousButton" runat="server" BackColor="White" BorderColor="#C5BBAF"
                    BorderStyle="Solid" BorderWidth="1px" CausesValidation="False" CommandName="MovePrevious"
                    Font-Names="Verdana" Font-Size="0.8em" ForeColor="#1C5E55" OnClick="FinishPreviousButton_Click"
                    Text="Precedente"/>
                <asp:Button ID="FinishButton" runat="server" BackColor="White" BorderColor="#C5BBAF"
                    BorderStyle="Solid" BorderWidth="1px" CommandName="MoveComplete" Font-Names="Verdana"
                    Font-Size="0.8em" ForeColor="#1C5E55" Enabled="false" OnClick="FinishButton_Click" Text="Salva" />
            </FinishNavigationTemplate>
            <StepNavigationTemplate>
                <asp:Button ID="StepPreviousButton" runat="server" BackColor="White" BorderColor="#C5BBAF"
                    BorderStyle="Solid" BorderWidth="1px" CausesValidation="False" CommandName="MovePrevious"
                    Font-Names="Verdana" Font-Size="0.8em" ForeColor="#1C5E55" OnClick="StepPreviousButton_Click"
                    Text="Precedente" />
                <asp:Button ID="StepNextButton"  runat="server" BackColor="White" BorderColor="#C5BBAF"
                    BorderStyle="Solid" BorderWidth="1px" CommandName="MoveNext" Font-Names="Verdana"
                    Font-Size="0.8em" ForeColor="#1C5E55" OnClick="StepNextButton_Click" Text="Successivo" />
            </StepNavigationTemplate>
        </asp:Wizard>
        <asp:Panel ID="PnlSuccess" runat="server" Visible="false">
            <asp:Image ImageUrl="~/Img/Ok.png" ID="imgOk" runat="server" Height="24px" Width="24px" />
            <asp:Label Text="Associazione salvata con successo" ID="lblOk" runat="server" /> 
            <asp:Button ID="cmdOk" runat="server" OnClick="cmdOk_Click" Text="Ok" />  
        </asp:Panel>
        
        <asp:Panel ID="pnlError" runat="server" Visible="false">
            <asp:Image ImageUrl="~/Img/Error.png" ID="Image1" runat="server" Height="24px" Width="24px" />
            <asp:Label Text="Errore mentre si salvano i dat: " ID="lblError" runat="server" />   
        </asp:Panel>
    </div>

</asp:Content>

